#ifndef soundSpot_h
#define soundSpot_h

#include "LivingSpot.h"
#include "classMidi.h" // no need for declaring object members, but we need the global object myMidi defined as external in the midi class (this does not look right though...)
#include "WProgram.h"

#include "OSCClass.h"
extern OSCMessage recMes;
extern OSCMessage sendMes;
extern OSCClass osc;

class soundSpot: public LivingSpot {
 protected: 
   
 public: 
   soundSpot(); 
   
  void stopAllSending();
 
  // HARDWARE SENDING MODE per spot (can be changed by serial or osc commands):
  boolean sendSerial;
  boolean sendOSC;
  boolean sendMIDI;

  // SENDING MODE (can be changed by serial or osc commands):
  boolean sendingPosition;
  boolean sendingColor; // in fact, mean intensity of the saccade
  boolean sendingCollision;
  boolean sendingTouchWall;
  boolean sendingAngle; 
 
  void sendData(void); // this will swnd the data on Serial and/or OSC and/or MIDI
};

#endif
